<div class="pageHeader">
	<form id="pagerForm" onsubmit="return navTabSearch(this);"
		action="<?php echo url('admin::contents',array('model'=>$model->id))?>"
		method="GET">
		<input type="hidden" name="pageNum" value="1" /> <input type="hidden"
			name="numPerPage" value="<?php echo $pagination['numPerPage']?>" />
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td width="50">内容标题：</td>
					<td><input name="title" type="text" value="<?php echo $data['context']->title?>" />
					</td>
				</tr>
				<tr>
					<td colspan="10"><div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">搜 索</button>
							</div>
						</div>
					</td>
				</tr>
			</table>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add"
				href="<?php echo url('contents/modify',array('model'=>$model->id))?>"
				target="navTab"><span>新加</span> </a></li>
			<li><a class="edit"
				href="<?php echo url('contents/modify',array('model'=>$model->id),null,array('mode'=>'standard'))?>&mid={id}"
				target="navTab"><span>编辑</span> </a></li>
			<li><a class="delete"
				href="<?php echo url('contents/delete',array('model'=>$model->id),null,array('mode'=>'standard'))?>&did={id}"
				target="ajaxTodo" title="确定要删除吗?"><span>删除</span> </a>
			</li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="137">
		<thead>
			<tr>
				<th width="50">编号</th>
				<th>标题</th>
				<th>型号</th>
				<th width="100">分类</th>
				<th width="180">发布时间</th>
				<th width="80">发布状态</th>
				<th width="150">操作</th>
			</tr>
		</thead>
		<tbody>
		<?php foreach ($data['fetch_data'] as $item):?>
			<tr target="id" rel="<?php echo $item->id?>">
				<td><?php echo $item->id?></td>
				<td><?php echo $item->title?></td>
				<td><?php echo $item->tsn?></td>
				<td><?php echo $item->category->catename?></td>
				<td><?php echo date('Y年m月d日 H时',$item->createtime)?></td>
				<td><?php echo $item->status_alt?></td>
				<td>--</td>
			</tr>
			<?php endforeach;?>
			<?php if (!count($data)):?>
			<tr>
				<td colspan="10">没有找到数据!</td>
			</tr>
			<?php endif;?>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>每页显示</span> <select class="combox" name="numPerPage"
				change="navTabPageBreak" param="numPerPage">
				<option value="20"
				<?php echo $pagination['numPerPage']==20?'selected':''?>>20</option>
				<option value="50"
				<?php echo $pagination['numPerPage']==50?'selected':''?>>50</option>
				<option value="100"
				<?php echo $pagination['numPerPage']==100?'selected':''?>>100</option>
				<option value="200"
				<?php echo $pagination['numPerPage']==200?'selected':''?>>200</option>
			</select> <span>条，共<?php echo $pagination['totalCount']?>条</span>
		</div>
		<div class="pagination" targetType="navTab"
			totalCount="<?php echo $pagination['totalCount']?>"
			numPerPage="<?php echo $pagination['numPerPage']?>"
			pageNumShown="<?php echo $pagination['pageNumShown']?>"
			currentPage="<?php echo $pagination['currentPage']?>"></div>
	</div>
</div>
